package com.wss.module.wan.ui.collection.mvp.model;

import com.wss.common.base.mvp.BaseModel;
import com.wss.common.net.Api;
import com.wss.module.wan.ui.collection.mvp.contract.CollectionContract;
import com.zhouyou.http.EasyHttp;
import com.zhouyou.http.callback.SimpleCallBack;
import ohos.aafwk.ability.ILifecycle;
import ohos.aafwk.ability.Lifecycle;

/**
 * Describe：收藏Module
 * Created by 吴天强 on 2018/11/16.
 */
public class CollectionModel extends BaseModel implements CollectionContract.Model {


    public CollectionModel(Lifecycle lifecycleOwner) {
        super(lifecycleOwner);
    }

    @Override
    public void getCollectionList(int page, SimpleCallBack<String> callBack) {
        EasyHttp.get(String.format(Api.COLLECTION_LIST, page))
                .execute(callBack);
    }
}
